package cn.sylinx.hbatis.ext.ifblock;

public class END implements FollowNode {

	private int index;

	private int nextIndex;

	private PreNode preNode;

	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("{");
		sb.append("END NODE(");
		sb.append("index:").append(index).append(",");
		sb.append("nextIndex:").append(nextIndex).append("");
		sb.append(")");
		sb.append("}");

		return sb.toString();
	}

	public String getNodeName() {
		return "#END";
	}
	
	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public int getNextIndex() {
		return nextIndex;
	}

	public void setNextIndex(int nextIndex) {
		this.nextIndex = nextIndex;
	}

	public PreNode getPreNode() {
		return preNode;
	}

	public void setPreNode(PreNode preNode) {
		this.preNode = preNode;
	}

}
